package com.dr.entity;

/**
 * 用户
 * @author 宋雪晗
 *
 */
public class User {
	
    private Integer id;
	/* @NotNull(message = "用户名不能为空") */
    private String name;
   // @NotNull(message = "性别不能为空")
    private String gender;
   // @DateTimeFormat(pattern="yyyy/MM/dd")
    private String birthday;
 //   @Pattern(regexp = "([1][358][0-9][0-9]{8})|([1][4][37][0-9]{8})|([1][7][01367][0-9]{8})",message = "电话号码格式错误")
    private String phone;
  //  @Length(max = 12,min = 4,message = "密码长度在4~12位之间")
    private String loginPassword;

    private String img;

    private String paypassword;

    private String lastlogintime;

    private Double errorcount;

    private String isLock;

    private String isadmin;

    private Double accountbmikece;

    private String lastloginerrortime;
    private Integer page;
	private Integer limit;
	public Integer getPage() {
		if (page==null) {
			return 0;
		}else {
			return (page-1)*limit;
		}
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		return limit;
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	

	public String getLoginPassword() {
		return loginPassword;
	}
	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getPaypassword() {
		return paypassword;
	}

	public void setPaypassword(String paypassword) {
		this.paypassword = paypassword;
	}

	public String getLastlogintime() {
		return lastlogintime;
	}

	public void setLastlogintime(String lastlogintime) {
		this.lastlogintime = lastlogintime;
	}

	public Double getErrorcount() {
		return errorcount;
	}

	public void setErrorcount(Double errorcount) {
		this.errorcount = errorcount;
	}

	
	public String getIsadmin() {
		return isadmin;
	}

	public void setIsadmin(String isadmin) {
		this.isadmin = isadmin;
	}

	public Double getAccountbmikece() {
		return accountbmikece;
	}

	public void setAccountbmikece(Double accountbmikece) {
		this.accountbmikece = accountbmikece;
	}

	public String getLastloginerrortime() {
		return lastloginerrortime;
	}

	public void setLastloginerrortime(String lastloginerrortime) {
		this.lastloginerrortime = lastloginerrortime;
	}
	public String getIsLock() {
		return isLock;
	}
	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}

   
}